// 使用 fp.add(x, y) 和 fp.map(f, x) 创建一个能让functor里的值增加的函数ex1

const { add, map } = require('lodash/fp')
const { Maybe } = require('./support')

let maybe = Maybe.of([5, 6, 1])
let ex1 = (n, functor) => functor.map(map(add(n)))

console.log(ex1(1, maybe))
console.log(ex1(2, maybe))
